package com.luych.toolbox.automation.service.core.connection;

import com.luych.toolbox.common.enums.DataSourceType;

public class SqlConnection {

    private DataSourceType type;
    private String host;
    private Integer port;
    private String user;
    private String pass;
    private String db;

    public SqlConnection(DataSourceType type, String host, Integer port, String user, String pass, String db) {
        this.type = type;
        this.host = host;
        this.port = port;
        this.user = user;
        this.pass = pass;
        this.db = db;
    }

    public DataSourceType getType() {
        return type;
    }

    public void setType(DataSourceType type) {
        this.type = type;
    }

    public String getHost() {
        return host;
    }

    public void setHost(String host) {
        this.host = host;
    }

    public Integer getPort() {
        return port;
    }

    public void setPort(Integer port) {
        this.port = port;
    }

    public String getUser() {
        return user;
    }

    public void setUser(String user) {
        this.user = user;
    }

    public String getPass() {
        return pass;
    }

    public void setPass(String pass) {
        this.pass = pass;
    }

    public String getDb() {
        return db;
    }

    public void setDb(String db) {
        this.db = db;
    }
}
